home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / comm / ums / developer.lha / Developer / arexx / UmsConsts.rexx < prev    next >
Encoding:
OS/2 REXX Batch file  |  1993-11-03  |  3.5 KB  |  115 lines

  1. /* ------------------------------------------------------------------------
  2.   :Program.       UMSConsts.rexx
  3.   :Contents.      constant definitions for ums.library
  4.   :Author.        Kai Bolay [kai]
  5.   :Address.       Snail-Mail:              E-Mail:
  6.   :Address.       Hoffmannstraße 168       UUCP: kai@amokle.stgt.sub.org
  7.   :Address.       D-71229 Leonberg         FIDO: 2:2407/106.3
  8.   :History.       v1.0 [kai] 23-Sep-93
  9.   :Version.       $VER: UMSConsts 1.0 (23.9.93)
  10.   :Copyright.     Freely Distributable
  11.   :Language.      ARexx
  12. ------------------------------------------------------------------------ */
  13.  
  14. false = 0
  15. true  = 1
  16.  
  17. /* enumeration of fields in an UMS-message */
  18. UMSCODE_MsgText      =  0
  19. UMSCODE_FromName     =  1
  20. UMSCODE_FromAddr     =  2
  21. UMSCODE_ToName       =  3
  22. UMSCODE_ToAddr       =  4
  23. UMSCODE_MsgID        =  5
  24. UMSCODE_CreationDate =  6
  25. UMSCODE_ReceiveDate  =  7
  26. UMSCODE_RefID        =  8
  27. UMSCODE_Group        =  9
  28. UMSCODE_Subject      = 10
  29. UMSCODE_Attributes   = 11
  30. UMSCODE_Comments     = 12
  31. UMSCODE_Organization = 13
  32. UMSCODE_Distribution = 14
  33. UMSCODE_Folder       = 15
  34. UMSCODE_FidoID       = 16
  35. UMSCODE_MausID       = 17
  36. UMSCODE_ReplyGroup   = 18
  37. UMSCODE_ReplyName    = 19
  38. UMSCODE_ReplyAddr    = 20
  39. UMSCODE_FidoText     = 32
  40. UMSCODE_ErrorText    = 33
  41. UMSCODE_Newsreader   = 34
  42.  
  43. UMSNUMFIELDS = 128
  44.  
  45. /* user status-bits */
  46.  
  47. UMSUSTAT_Archive     =  4 /* msg should be archived, don't delete */
  48. UMSUSTAT_Junk        =  5 /* negative selection, inheritance suggested */
  49. UMSUSTAT_PostPoned   =  6 /* to be read again, (but not now) */
  50. UMSUSTAT_Selected    =  7 /* positive selection, inheritance suggested */
  51. UMSUSTAT_Old         =  8 /* user has already read this Message */
  52. UMSUSTAT_Read        = Old
  53. UMSUSTAT_WriteAccess =  9 /* user may change or delete this message */
  54. UMSUSTAT_ReadAccess  = 10 /* user may read this message */
  55. UMSUSTAT_ViewAccess  = 11 /* user may read the header of this message */
  56. UMSUSTAT_Owner       = 12 /* user 'owns' (wrote) this message */
  57.  
  58. UMSUFLAGS_Protected = '00001E00'x /* WriteAccess, ReadAccess, ViewAccess, Owner */
  59.  
  60. /* global status-bits */
  61.  
  62. UMSGSTAT_Deleted  = 0 /* msg is really deleted */
  63. UMSGSTAT_Expired  = 1 /* msg has expired and may be deleted */
  64. UMSGSTAT_Exported = 2 /* msg has been exported */
  65. UMSGSTAT_Orphan   = 3 /* msg could not be exported */
  66. UMSGSTAT_Link     = 4 /* within a ring of linked msgs */
  67. UMSGSTAT_HardLink = 5 /* link is hardLink */
  68.  
  69. UMSGFLAGS_Protected = '0000003D'x /* Deleted, Exported, Orphan, Link, HardLink */
  70.  
  71. /* Errors */
  72.  
  73. UMSERR_ok      = 0
  74. UMSERR_unknown = 1
  75.  
  76. UMSERR_codeMissing   = 100
  77. UMSERR_forbiddenCode = 101
  78. UMSERR_noWriteAccess = 102
  79. UMSERR_noReader      = 103
  80. UMSERR_noExporter    = 104
  81. UMSERR_badLink       = 105
  82. UMSERR_noWork        = 106
  83. UMSERR_noSysop       = 107
  84. UMSERR_badChange     = 108
  85.  
  86. UMSERR_dupe         = 200
  87. UMSERR_noReadAccess = 201
  88. UMSERR_noViewAccess = 202
  89. UMSERR_msgCorrupted = 203
  90. UMSERR_noHdrSpace   = 204
  91. UMSERR_noSuchMsg    = 205
  92. UMSERR_badName      = 206
  93. UMSERR_badTag       = 207
  94. UMSERR_missingTag   = 208
  95. UMSERR_noSuchUser   = 209
  96. UMSERR_notFound     = 210
  97. UMSERR_autoBounce   = 211
  98. UMSERR_msgDeleted   = 212
  99. UMSERR_noNetAccess  = 213
  100. UMSERR_badPattern   = 214
  101. UMSERR_badVarname   = 215
  102. UMSERR_fsFull       = 216
  103. UMSERR_noMsgMem     = 217
  104. UMSERR_missingIndex = 218
  105.  
  106. UMSERR_serverTerminated = 300
  107. UMSERR_cantWrite        = 301
  108. UMSERR_cantRead         = 302
  109. UMSERR_wrongMsgPtr      = 303
  110. UMSERR_serverNotFree    = 304
  111. UMSERR_idCountProb      = 305
  112. UMSERR_noLogin          = 306
  113. UMSERR_wrongServer      = 307
  114. UMSERR_noMem            = 308
  115.